package com.liangsui.cmall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@EnableRedisHttpSession
@EnableFeignClients(basePackages = "com.liangsui.cmall.product.feign")
@MapperScan(basePackages = {"com.liangsui.cmall.product.dao"})
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.liangsui.common.config", "com.liangsui.cmall.product"})
@SpringBootApplication
public class CmallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(CmallProductApplication.class, args);
    }

}
